<!DOCTYPE html>
<html>

<head>
    <title>系统消息</title>
    <meta charset="utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <link rel="stylesheet" href="/js/bootstrap/css/bootstrap.min.css">
    <script src="/js/jquery/jquery.min.js"></script>
    <script src="/js/bootstrap/js/bootstrap.min.js"></script>
    <script src="/js/plugins/jrender/jrender.js"></script>
    <link rel="stylesheet" href="/css/font/css/font-awesome.min.css"/>
    <link rel="stylesheet" href="/css/reset.css"/>
    <link rel="stylesheet" href="/css/message.css"/>
</head>

<script>
    $(function () {
        //获取作用域中的用户id
        var user = sessionStorage.getItem("user");
        var json = JSON.parse(user);

        //发送ajax请求获取未阅读的系统消息
        $.ajax({
            url: "/users/" + json.id + "/notice",
            type: "GET",
            success: function (data) {
                $(".notice").renderValues({list: data});
            }
        });
    });
</script>

<body>
<div class="search-head">
    <div class="row nav-search">
        <div class="col">
            <a href="javascript:history.go(-1);">
                <span><i class="fa fa-chevron-left"></i></span>
            </a>
        </div>
        <div class="col">
            <span>系统消息</span>
        </div>
        <div class="col"></div>
    </div>
</div>

<div class="notice">
    <div render-loop="list">
        <div>
            <span render-html="list.title"></span>
            <div>
                <font color="#b0c4de" render-html="list.content"></font>
            </div><br>
        </div>
    </div>
</div>

</body>
</html>